namespace QMVnSoft.ReportForms
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormVTH02AViewer : FormReportViewer
    {
        private IContainer components;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_Nh_Dt;
        private LabelControl lblMa_Nh_Vt;
        private LabelControl lblMa_Vt;
        private LabelControl lblNgay_Ct1;
        private LabelControl lblNgay_Ct2;
        private LabelControl lblNo_Co;
        private LabelControl lblTk_641;
        private LabelControl lblTk_642;
        private TextOption txtLoai_PB;
        private TextSearch txtMa_Dt;
        private TextSearch txtMa_Nh_Dt;
        private TextSearch txtMa_Nh_Vt;
        private TextSearch txtMa_Vt;
        private TextDate txtNgay_Ct1;
        private TextDate txtNgay_Ct2;
        private LabelControl txtNo_Co0;
        private TextControl txtTen_Dt;
        private TextControl txtTen_Nh_Dt;
        private TextControl txtTen_Nh_Vt;
        private TextControl txtTen_Vt;
        private TextSearch txtTk_641;
        private TextSearch txtTk_642;

        public FormVTH02AViewer()
        {
            this.InitializeComponent();
            this.txtNgay_Ct1.Value = AppInstance.StartWorkingDate;
            this.txtNgay_Ct2.Value = AppInstance.EndWorkingDate;
            this.txtTk_641.Value = "641";
            this.txtTk_642.Value = "642";
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            //ComponentResourceManager manager = new ComponentResourceManager(typeof(FormVTH02AViewer));
            this.txtTen_Vt = new TextControl();
            this.txtMa_Vt = new TextSearch();
            this.lblMa_Vt = new LabelControl();
            this.txtNgay_Ct2 = new TextDate();
            this.lblNgay_Ct2 = new LabelControl();
            this.txtNgay_Ct1 = new TextDate();
            this.lblNgay_Ct1 = new LabelControl();
            this.txtTen_Dt = new TextControl();
            this.txtMa_Dt = new TextSearch();
            this.lblMa_Dt = new LabelControl();
            this.txtTen_Nh_Dt = new TextControl();
            this.txtMa_Nh_Dt = new TextSearch();
            this.lblMa_Nh_Dt = new LabelControl();
            this.txtTen_Nh_Vt = new TextControl();
            this.txtMa_Nh_Vt = new TextSearch();
            this.lblMa_Nh_Vt = new LabelControl();
            this.txtTk_642 = new TextSearch();
            this.lblTk_642 = new LabelControl();
            this.txtTk_641 = new TextSearch();
            this.lblTk_641 = new LabelControl();
            this.txtNo_Co0 = new LabelControl();
            this.txtLoai_PB = new TextOption();
            this.lblNo_Co = new LabelControl();
            base.rptContainer.Panel1.SuspendLayout();
            base.rptContainer.SuspendLayout();
            base.SuspendLayout();
            base.rptContainer.Panel1.Controls.Add(this.txtNo_Co0);
            base.rptContainer.Panel1.Controls.Add(this.txtLoai_PB);
            base.rptContainer.Panel1.Controls.Add(this.lblNo_Co);
            base.rptContainer.Panel1.Controls.Add(this.txtTk_642);
            base.rptContainer.Panel1.Controls.Add(this.lblTk_642);
            base.rptContainer.Panel1.Controls.Add(this.txtTk_641);
            base.rptContainer.Panel1.Controls.Add(this.lblTk_641);
            base.rptContainer.Panel1.Controls.Add(this.txtTen_Nh_Vt);
            base.rptContainer.Panel1.Controls.Add(this.txtMa_Nh_Vt);
            base.rptContainer.Panel1.Controls.Add(this.lblMa_Nh_Vt);
            base.rptContainer.Panel1.Controls.Add(this.txtTen_Nh_Dt);
            base.rptContainer.Panel1.Controls.Add(this.txtMa_Nh_Dt);
            base.rptContainer.Panel1.Controls.Add(this.lblMa_Nh_Dt);
            base.rptContainer.Panel1.Controls.Add(this.txtTen_Dt);
            base.rptContainer.Panel1.Controls.Add(this.txtMa_Dt);
            base.rptContainer.Panel1.Controls.Add(this.lblMa_Dt);
            base.rptContainer.Panel1.Controls.Add(this.txtNgay_Ct2);
            base.rptContainer.Panel1.Controls.Add(this.lblNgay_Ct2);
            base.rptContainer.Panel1.Controls.Add(this.txtNgay_Ct1);
            base.rptContainer.Panel1.Controls.Add(this.lblNgay_Ct1);
            base.rptContainer.Panel1.Controls.Add(this.txtTen_Vt);
            base.rptContainer.Panel1.Controls.Add(this.txtMa_Vt);
            base.rptContainer.Panel1.Controls.Add(this.lblMa_Vt);
            base.rptContainer.SplitterDistance = 130;
            this.txtTen_Vt.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Vt.BackColor = SystemColors.Control;
            this.txtTen_Vt.BorderStyle = BorderStyle.None;
            this.txtTen_Vt.CheckTextSearched = false;
            this.txtTen_Vt.DisabledForeColor = Color.Blue;
            this.txtTen_Vt.Enabled = false;
            this.txtTen_Vt.Font = new Font("Arial", 8.25f);
            this.txtTen_Vt.ForeColor = Color.Blue;
            this.txtTen_Vt.Location = new Point(0xd6, 0x6f);
            this.txtTen_Vt.Name = "txtTen_Vt";
            this.txtTen_Vt.OldValue = null;
            this.txtTen_Vt.Size = new Size(0x1ca, 13);
            this.txtTen_Vt.TabIndex = 7;
//            this.txtTen_Vt.Value = null;//manager.GetObject("txtTen_Vt.Value");
            this.txtMa_Vt.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Vt.CheckTextSearched = false;
            this.txtMa_Vt.DisabledForeColor = Color.Empty;
            this.txtMa_Vt.EmptyIsValid = true;
            this.txtMa_Vt.FieldDisplay = "Ten_Vt";
            this.txtMa_Vt.Font = new Font("Arial", 8.25f);
            this.txtMa_Vt.FoundIsValid = true;
            this.txtMa_Vt.Location = new Point(0x6c, 0x6c);
            this.txtMa_Vt.MaxLength = 0x20;
            this.txtMa_Vt.Name = "txtMa_Vt";
            this.txtMa_Vt.OldValue = null;
            this.txtMa_Vt.Size = new Size(100, 20);
            this.txtMa_Vt.TabIndex = 8;
            this.txtMa_Vt.TableName = "DMVT";
            this.txtMa_Vt.TextDisplay = this.txtTen_Vt;
            this.txtMa_Vt.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Vt.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Vt.Value = null;//manager.GetObject("txtMa_Vt.Value");
            this.lblMa_Vt.AutoSize = true;
            this.lblMa_Vt.Font = new Font("Arial", 8.25f);
            this.lblMa_Vt.Location = new Point(12, 0x6f);
            this.lblMa_Vt.Name = "lblMa_Vt";
            this.lblMa_Vt.Size = new Size(0x34, 14);
            this.lblMa_Vt.TabIndex = 0x57;
            this.lblMa_Vt.Text = "Mã vật tư";
            this.txtNgay_Ct2.DateTimeFormat = TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct2.Font = new Font("Arial", 8.25f);
            this.txtNgay_Ct2.InsertKeyMode = InsertKeyMode.Overwrite;
            this.txtNgay_Ct2.Location = new Point(0x13c, 3);
            this.txtNgay_Ct2.Mask = "00/00/0000";
            this.txtNgay_Ct2.Name = "txtNgay_Ct2";
            this.txtNgay_Ct2.OldValue = null;
            this.txtNgay_Ct2.Size = new Size(100, 20);
            this.txtNgay_Ct2.TabIndex = 1;
//            this.txtNgay_Ct2.Value = null;//manager.GetObject("txtNgay_Ct2.Value");
            this.lblNgay_Ct2.AutoSize = true;
            this.lblNgay_Ct2.Font = new Font("Arial", 8.25f);
            this.lblNgay_Ct2.Location = new Point(0x100, 6);
            this.lblNgay_Ct2.Name = "lblNgay_Ct2";
            this.lblNgay_Ct2.Size = new Size(0x36, 14);
            this.lblNgay_Ct2.TabIndex = 0x61;
            this.lblNgay_Ct2.Text = "Đến ngày";
            this.txtNgay_Ct1.DateTimeFormat = TextDate.DateTimeFormatType.Date;
            this.txtNgay_Ct1.Font = new Font("Arial", 8.25f);
            this.txtNgay_Ct1.InsertKeyMode = InsertKeyMode.Overwrite;
            this.txtNgay_Ct1.Location = new Point(0x6c, 3);
            this.txtNgay_Ct1.Mask = "00/00/0000";
            this.txtNgay_Ct1.Name = "txtNgay_Ct1";
            this.txtNgay_Ct1.OldValue = null;
            this.txtNgay_Ct1.Size = new Size(100, 20);
            this.txtNgay_Ct1.TabIndex = 0;
//            this.txtNgay_Ct1.Value = null;//manager.GetObject("txtNgay_Ct1.Value");
            this.lblNgay_Ct1.AutoSize = true;
            this.lblNgay_Ct1.Font = new Font("Arial", 8.25f);
            this.lblNgay_Ct1.Location = new Point(12, 6);
            this.lblNgay_Ct1.Name = "lblNgay_Ct1";
            this.lblNgay_Ct1.Size = new Size(0x2f, 14);
            this.lblNgay_Ct1.TabIndex = 0x62;
            this.lblNgay_Ct1.Text = "Từ ngày";
            this.txtTen_Dt.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Dt.BackColor = SystemColors.Control;
            this.txtTen_Dt.BorderStyle = BorderStyle.None;
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = Color.Blue;
            this.txtTen_Dt.Enabled = false;
            this.txtTen_Dt.Font = new Font("Arial", 8.25f);
            this.txtTen_Dt.ForeColor = Color.Blue;
            this.txtTen_Dt.Location = new Point(0xd6, 0x45);
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new Size(0x1ca, 13);
            this.txtTen_Dt.TabIndex = 5;
//            this.txtTen_Dt.Value = null;//manager.GetObject("txtTen_Dt.Value");
            this.txtMa_Dt.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = Color.Empty;
            this.txtMa_Dt.EmptyIsValid = true;
            this.txtMa_Dt.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt.Font = new Font("Arial", 8.25f);
            this.txtMa_Dt.FoundIsValid = true;
            this.txtMa_Dt.Location = new Point(0x6c, 0x42);
            this.txtMa_Dt.MaxLength = 0x20;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.Size = new Size(100, 20);
            this.txtMa_Dt.TabIndex = 6;
            this.txtMa_Dt.TableName = "DMDT";
            this.txtMa_Dt.TextDisplay = this.txtTen_Dt;
            this.txtMa_Dt.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Dt.Value = null;//manager.GetObject("txtMa_Dt.Value");
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new Font("Arial", 8.25f);
            this.lblMa_Dt.Location = new Point(12, 0x45);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new Size(70, 14);
            this.lblMa_Dt.TabIndex = 0x69;
            this.lblMa_Dt.Text = "Mã đối tượng";
            this.txtTen_Nh_Dt.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Nh_Dt.BackColor = SystemColors.Control;
            this.txtTen_Nh_Dt.BorderStyle = BorderStyle.None;
            this.txtTen_Nh_Dt.CheckTextSearched = false;
            this.txtTen_Nh_Dt.DisabledForeColor = Color.Blue;
            this.txtTen_Nh_Dt.Enabled = false;
            this.txtTen_Nh_Dt.Font = new Font("Arial", 8.25f);
            this.txtTen_Nh_Dt.ForeColor = Color.Blue;
            this.txtTen_Nh_Dt.Location = new Point(0xd6, 0x30);
            this.txtTen_Nh_Dt.Name = "txtTen_Nh_Dt";
            this.txtTen_Nh_Dt.OldValue = null;
            this.txtTen_Nh_Dt.Size = new Size(0x1ca, 13);
            this.txtTen_Nh_Dt.TabIndex = 9;
//            this.txtTen_Nh_Dt.Value = null;//manager.GetObject("txtTen_Nh_Dt.Value");
            this.txtMa_Nh_Dt.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Nh_Dt.CheckTextSearched = false;
            this.txtMa_Nh_Dt.DisabledForeColor = Color.Empty;
            this.txtMa_Nh_Dt.EmptyIsValid = true;
            this.txtMa_Nh_Dt.FieldDisplay = "Ten_Nh_Dt";
            this.txtMa_Nh_Dt.Font = new Font("Arial", 8.25f);
            this.txtMa_Nh_Dt.FoundIsValid = true;
            this.txtMa_Nh_Dt.Location = new Point(0x6c, 0x2d);
            this.txtMa_Nh_Dt.MaxLength = 0x20;
            this.txtMa_Nh_Dt.Name = "txtMa_Nh_Dt";
            this.txtMa_Nh_Dt.OldValue = null;
            this.txtMa_Nh_Dt.Size = new Size(100, 20);
            this.txtMa_Nh_Dt.TabIndex = 5;
            this.txtMa_Nh_Dt.TableName = "DMNHDT";
            this.txtMa_Nh_Dt.TextDisplay = this.txtTen_Nh_Dt;
            this.txtMa_Nh_Dt.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nh_Dt.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Nh_Dt.Value = null;//manager.GetObject("txtMa_Nh_Dt.Value");
            this.lblMa_Nh_Dt.AutoSize = true;
            this.lblMa_Nh_Dt.Font = new Font("Arial", 8.25f);
            this.lblMa_Nh_Dt.Location = new Point(12, 0x30);
            this.lblMa_Nh_Dt.Name = "lblMa_Nh_Dt";
            this.lblMa_Nh_Dt.Size = new Size(0x53, 14);
            this.lblMa_Nh_Dt.TabIndex = 0x6c;
            this.lblMa_Nh_Dt.Text = "Nhóm đối tượng";
            this.txtTen_Nh_Vt.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            this.txtTen_Nh_Vt.BackColor = SystemColors.Control;
            this.txtTen_Nh_Vt.BorderStyle = BorderStyle.None;
            this.txtTen_Nh_Vt.CheckTextSearched = false;
            this.txtTen_Nh_Vt.DisabledForeColor = Color.Blue;
            this.txtTen_Nh_Vt.Enabled = false;
            this.txtTen_Nh_Vt.Font = new Font("Arial", 8.25f);
            this.txtTen_Nh_Vt.ForeColor = Color.Blue;
            this.txtTen_Nh_Vt.Location = new Point(0xd6, 90);
            this.txtTen_Nh_Vt.Name = "txtTen_Nh_Vt";
            this.txtTen_Nh_Vt.OldValue = null;
            this.txtTen_Nh_Vt.Size = new Size(0x1ca, 13);
            this.txtTen_Nh_Vt.TabIndex = 110;
//            this.txtTen_Nh_Vt.Value = null;//manager.GetObject("txtTen_Nh_Vt.Value");
            this.txtMa_Nh_Vt.CharacterCasing = CharacterCasing.Upper;
            this.txtMa_Nh_Vt.CheckTextSearched = false;
            this.txtMa_Nh_Vt.DisabledForeColor = Color.Empty;
            this.txtMa_Nh_Vt.EmptyIsValid = true;
            this.txtMa_Nh_Vt.FieldDisplay = "Ten_Nh_Vt";
            this.txtMa_Nh_Vt.Font = new Font("Arial", 8.25f);
            this.txtMa_Nh_Vt.FoundIsValid = true;
            this.txtMa_Nh_Vt.Location = new Point(0x6c, 0x57);
            this.txtMa_Nh_Vt.MaxLength = 0x20;
            this.txtMa_Nh_Vt.Name = "txtMa_Nh_Vt";
            this.txtMa_Nh_Vt.OldValue = null;
            this.txtMa_Nh_Vt.Size = new Size(100, 20);
            this.txtMa_Nh_Vt.TabIndex = 7;
            this.txtMa_Nh_Vt.TableName = "DMNHVT";
            this.txtMa_Nh_Vt.TextDisplay = this.txtTen_Nh_Vt;
            this.txtMa_Nh_Vt.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nh_Vt.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtMa_Nh_Vt.Value = null;//manager.GetObject("txtMa_Nh_Vt.Value");
            this.lblMa_Nh_Vt.AutoSize = true;
            this.lblMa_Nh_Vt.Font = new Font("Arial", 8.25f);
            this.lblMa_Nh_Vt.Location = new Point(12, 90);
            this.lblMa_Nh_Vt.Name = "lblMa_Nh_Vt";
            this.lblMa_Nh_Vt.Size = new Size(0x41, 14);
            this.lblMa_Nh_Vt.TabIndex = 0x6f;
            this.lblMa_Nh_Vt.Text = "Nhóm vật tư";
            this.txtTk_642.CharacterCasing = CharacterCasing.Upper;
            this.txtTk_642.CheckTextSearched = false;
            this.txtTk_642.DisabledForeColor = Color.Empty;
            this.txtTk_642.FieldDisplay = "Ten_Tk";
            this.txtTk_642.Font = new Font("Arial", 8.25f);
            this.txtTk_642.FoundIsValid = true;
            this.txtTk_642.Location = new Point(0x13c, 0x18);
            this.txtTk_642.MaxLength = 0x20;
            this.txtTk_642.Name = "txtTk_642";
            this.txtTk_642.OldValue = null;
            this.txtTk_642.Size = new Size(100, 20);
            this.txtTk_642.TabIndex = 3;
            this.txtTk_642.TableName = "DMTK";
            this.txtTk_642.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtTk_642.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtTk_642.Value = null;//manager.GetObject("txtTk_642.Value");
            this.lblTk_642.AutoSize = true;
            this.lblTk_642.Font = new Font("Arial", 8.25f);
            this.lblTk_642.Location = new Point(220, 0x1b);
            this.lblTk_642.Name = "lblTk_642";
            this.lblTk_642.Size = new Size(90, 14);
            this.lblTk_642.TabIndex = 0x73;
            this.lblTk_642.Text = "Tk chi phí quản lý";
            this.txtTk_641.CharacterCasing = CharacterCasing.Upper;
            this.txtTk_641.CheckTextSearched = false;
            this.txtTk_641.DisabledForeColor = Color.Empty;
            this.txtTk_641.FieldDisplay = "Ten_Tk";
            this.txtTk_641.Font = new Font("Arial", 8.25f);
            this.txtTk_641.FoundIsValid = true;
            this.txtTk_641.Location = new Point(0x6c, 0x18);
            this.txtTk_641.MaxLength = 0x20;
            this.txtTk_641.Name = "txtTk_641";
            this.txtTk_641.OldValue = null;
            this.txtTk_641.Size = new Size(100, 20);
            this.txtTk_641.TabIndex = 2;
            this.txtTk_641.TableName = "DMTK";
            this.txtTk_641.UserTextLength = AppInstance.TextControlLength.ItemCode;
            this.txtTk_641.UserTrimMode = AppInstance.TextControlTrimMode.All;
//            this.txtTk_641.Value = null;//manager.GetObject("txtTk_641.Value");
            this.lblTk_641.AutoSize = true;
            this.lblTk_641.Font = new Font("Arial", 8.25f);
            this.lblTk_641.Location = new Point(12, 0x1b);
            this.lblTk_641.Name = "lblTk_641";
            this.lblTk_641.Size = new Size(100, 14);
            this.lblTk_641.TabIndex = 0x72;
            this.lblTk_641.Text = "Tk chi phí bán hàng";
            this.txtNo_Co0.AutoSize = true;
            this.txtNo_Co0.Font = new Font("Arial", 8.25f);
            this.txtNo_Co0.ForeColor = Color.Blue;
            this.txtNo_Co0.Location = new Point(0x22a, 0x1b);
            this.txtNo_Co0.Name = "txtNo_Co0";
            this.txtNo_Co0.Size = new Size(0xa5, 14);
            this.txtNo_Co0.TabIndex = 0x76;
            this.txtNo_Co0.Text = "1-Doanh số bán, 2-Số lượng bán";
            this.txtLoai_PB.CharacterCasing = CharacterCasing.Upper;
            this.txtLoai_PB.CheckTextSearched = false;
            this.txtLoai_PB.DisabledForeColor = Color.Blue;
            this.txtLoai_PB.Font = new Font("Arial", 8.25f);
            this.txtLoai_PB.InputMask = "1,2";
            this.txtLoai_PB.Location = new Point(0x20e, 0x18);
            this.txtLoai_PB.Name = "txtLoai_PB";
            this.txtLoai_PB.OldValue = null;
            this.txtLoai_PB.Size = new Size(0x16, 20);
            this.txtLoai_PB.TabIndex = 4;
            this.txtLoai_PB.Text = "1";
            this.txtLoai_PB.TextAlign = HorizontalAlignment.Center;
            this.txtLoai_PB.Value = "1";
            this.lblNo_Co.AutoSize = true;
            this.lblNo_Co.Font = new Font("Arial", 8.25f);
            this.lblNo_Co.Location = new Point(450, 0x1b);
            this.lblNo_Co.Name = "lblNo_Co";
            this.lblNo_Co.Size = new Size(70, 14);
            this.lblNo_Co.TabIndex = 0x75;
            this.lblNo_Co.Text = "Phân bổ theo";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.ClientSize = new Size(0x31a, 0x1cf);
            base.Name = "FormVTH02AViewer";
            base.rptContainer.Panel1.ResumeLayout(false);
            base.rptContainer.Panel1.PerformLayout();
            base.rptContainer.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        protected override void OnGenerateColumns()
        {
            object[][] objArray = new object[11][];
            object[] objArray2 = new object[4];
            objArray2[0] = "Ma_Vt";
            objArray2[1] = "Vật tư";
            objArray2[2] = "C";
            objArray[0] = objArray2;
            object[] objArray3 = new object[4];
            objArray3[0] = "Ten_Vt";
            objArray3[1] = "Tên vật tư";
            objArray3[2] = "C";
            objArray[1] = objArray3;
            object[] objArray4 = new object[4];
            objArray4[0] = "Dvt";
            objArray4[1] = "Đơn vị tính";
            objArray4[2] = "C";
            objArray[2] = objArray4;
            objArray[3] = new object[] { "So_Luong", "Số lượng", "N", AppInstance.TextNumericFormat.Quantity };
            objArray[4] = new object[] { "Tien_511", "Doanh thu", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[5] = new object[] { "Tien_333", "Tiền thuế", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[6] = new object[] { "Tien_521", "Chiết khấu", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[7] = new object[] { "Tien_632", "Giá vốn", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[8] = new object[] { "Tien_641", "Chi phí bán hàng", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[9] = new object[] { "Tien_642", "Chi phí quản lý", "N", AppInstance.TextNumericFormat.LocalAmount };
            objArray[10] = new object[] { "Tien_911", "L\x00e3i gộp", "N", AppInstance.TextNumericFormat.LocalAmount };
            base.LocalColNames = objArray;
            base.OnGenerateColumns();
        }

        protected override void OnMakeReport()
        {
            AppInstance.StartWorkingDate = (DateTime) this.txtNgay_Ct1.Value;
            AppInstance.EndWorkingDate = (DateTime) this.txtNgay_Ct2.Value;
            base.LocalTable = new ReportDataAccess().VTH02A_Get(AppInstance.Subsidiaries, this.txtNgay_Ct1.Value, this.txtNgay_Ct2.Value, this.txtMa_Nh_Dt.Value, this.txtMa_Dt.Value, this.txtMa_Nh_Vt.Value, this.txtMa_Vt.Value, this.txtTk_641.Value, this.txtTk_642.Value, this.txtLoai_PB.Value, AppInstance.DefLanguage);
            base.OnMakeReport();
        }

        protected override void OnSendParameters()
        {
            base.StimulReport["Ngay"] = "Từ ngày " + string.Format("{0:dd/MM/yyyy}", this.txtNgay_Ct1.Value) + " đến ngày " + string.Format("{0:dd/MM/yyyy}", this.txtNgay_Ct2.Value);
            if (string.IsNullOrEmpty(this.txtMa_Nh_Dt.Value.ToString()))
            {
                base.StimulReport["NhomDoiTuong"] = "";
            }
            else
            {
                base.StimulReport["NhomDoiTuong"] = string.Concat(new object[] { "Nhóm đối tượng: ", this.txtTen_Nh_Dt.Value, " (", this.txtMa_Nh_Dt.Value, ")" });
            }
            if (string.IsNullOrEmpty(this.txtMa_Dt.Value.ToString()))
            {
                base.StimulReport["DoiTuong"] = "";
            }
            else
            {
                base.StimulReport["DoiTuong"] = string.Concat(new object[] { "Đối tượng: ", this.txtTen_Dt.Value, " (", this.txtMa_Dt.Value, ")" });
            }
            if (string.IsNullOrEmpty(this.txtMa_Nh_Vt.Value.ToString()))
            {
                base.StimulReport["NhomVatTu"] = "";
            }
            else
            {
                base.StimulReport["NhomVatTu"] = string.Concat(new object[] { "Nhóm vật tư: ", this.txtTen_Nh_Vt.Value, " (", this.txtMa_Nh_Vt.Value, ")" });
            }
            if (string.IsNullOrEmpty(this.txtMa_Vt.Value.ToString()))
            {
                base.StimulReport["VatTu"] = "";
            }
            else
            {
                base.StimulReport["VatTu"] = string.Concat(new object[] { "Vật tư: ", this.txtTen_Vt.Value, " (", this.txtMa_Vt.Value, ")" });
            }
        }
    }
}

